<%@ page language="java" import="java.util.*,model.Work,util.DateTool" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>作业查看</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <link rel="stylesheet" type="text/css" href="css/div-style.css">
     
  </head>
  
  <body>
   <div class="main">
    <div class="div_top">
        <div id="info">
            <!-- 右上角登录信息栏（未完成） -->
              <p id="p1">欢迎您，${username}</p><a class="ainfo" href="">修改密码</a>&nbsp;&nbsp;&nbsp;&nbsp;<a class="ainfo" href="/wdcoursemgn/logout">注销</a>
        </div>
    </div>
    <div  class="teacher_left">
          <!-- 左边菜单栏 -->
         <div id="menu">
              <!-- 修饰，无实际作用 -->
         </div>
         <div class="list">
                  <ul class="list1">
                  <li> <a class="a-select" href="/wdcoursemgn/StuqueryAllWork"><font>作业查看</font></a></li>
                  <li> <a class="a-list" href="/wdcoursemgn/queryAllGrade"><font>成绩查询</font></a></li>
                  <li> <a class="a-list" href=""><font>作业展示</font></a></li>
                  </ul>
         </div>
    </div>
    <div  class="div_right">
        <div id="work_detail">
          <% 
              Work work=(Work)request.getAttribute("WorkDetail");
              String releasedate=DateTool.DatetoString(work.getReleasedate());
              String deadline=DateTool.DatetoString(work.getDeadline());
          %>
         <p>作业编号：<%=work.getWork_id()%></p>
         <p>作业标题：<%=work.getTitle()%></p>
         <p>作业内容：<%=work.getContent()%></p>
         <p>发布日期：<%=releasedate%></p>
         <p>截至提交：<%=deadline%></p>
        <form action="submitWork" enctype="multipart/form-data" method="post" >  
                             上传作业：<input type="file" name="file" id="uploadfile"><br/>  
               <input type="hidden" name="work_id" id="work_id" value="<%=work.getWork_id()%>">               
               <input type="submit" value="上传"/>  
        </form>  
         ${submitmessage}
       <div style=""><a href="/wdcoursemgn/StuqueryAllWork" class="alink">返回</a></div>
       </div>
    </div>
    </div>
  </body>
</html>
